package com.qf.pojo;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.List;

@Data
@Entity
@Table(name = "menu")
/**
 * 菜单实体类
 */
public class Menu  implements Serializable {

	private Integer mid;

	@Column(name = "menu_name")
	private String menuName;

	@Column(name = "parent_id")
	private Integer parentId;

	private String url;

	private String state;

	private String content;

	//权限类型：菜单、请求权限
	private String type;

	//请求权限码
	private String percode;

	//映射与角色表的多对多关系
	private List<Permsetting> roleList;

	//二级菜单列表
	private List<Menu> secondMenu;

}
